Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
IndexOf Method
See Also 
Leadtools Namespace > Generic RasterCollection Class : IndexOf Method




item
Object to test.
Returns the index of the specified item if it is found in the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IndexOf( _
   ByVal item As T _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterCollection(Of T)
Dim item As T
Dim value As Integer
 
value = instance.IndexOf(item)
C# 
public virtual int IndexOf( 
   T item
)
Managed Extensions for C++ 
public: virtual int IndexOf( 
   T item
) 
C++/CLI 
public:
virtual int IndexOf( 
   T item
) 

Parameters

item
Object to test.

Return Value

The index of the specified item if it is found in the collection.

Example

For an example, refer to Generic RasterCollection.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also